﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using Microsoft.Extensions.Configuration;
using OAProject.Domain.Interfaces;
using OAProject.Domain.Entities;
using OAProject.Infrastructure.Data;

namespace OAProject.Infrastructure.Data
{
    public class DictValueRepository:DapperRepository<DictValue>,IDictValueRepository
    {
        //依赖注入
        public IConfiguration _configuration;

        public DictValueRepository(IConfiguration configuration)
        {
            this._configuration = configuration;
            //连接字符串
            this.ConnStr = _configuration.GetConnectionString("ConnStr");
            SimpleCRUD.SetDialect(SimpleCRUD.Dialect.MySQL);
            Conn = new MySql.Data.MySqlClient.MySqlConnection(this.ConnStr);
        }

       
    }
}
